﻿<%@ Page Language="C#" MasterPageFile="~/dangviet.Master" AutoEventWireup="true"
    CodeBehind="SanPham.aspx.cs" Inherits="SES.CMS.SanPham" Title="Untitled Page" %>

<%@ Register Src="Module/ucProductLeftMenu.ascx" TagName="ucProductLeftMenu" TagPrefix="uc1" %>
<%@ Register Src="Module/ucBreadcrumb.ascx" TagName="ucBreadcrumb" TagPrefix="uc5" %>
<%@ Register Src="Module/ucSlideNewProduct.ascx" TagName="ucSlideNewProduct" TagPrefix="uc8" %>
<%@ Register TagPrefix="cp" Namespace="SiteUtils" Assembly="CollectionPager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <uc8:ucSlideNewProduct ID="ucSlideNewProduct1" runat="server" />
    <uc5:ucBreadcrumb runat="server" ID="brc1" />
    <div class="product-wrap">
        <ul class="list-product">
            <asp:Repeater runat="server" ID="rpt">
                <ItemTemplate>
                    <li>
                        <div class="product-image-wrap">
                            <a href='/SanPhamChiTiet/<%#Eval("SanPhamID")%>/<%#FriendlyUrl(Eval("TenSanPham").ToString())%>'>
                                <img src='/Media/<%#Eval("HinhAnh")%>' title='<%#Eval("TenSanPham")%>' alt='<%#Eval("TenSanPham") %>' />
                            </a>
                        </div>
                        <a href='/SanPhamChiTiet/<%#Eval("SanPhamID")%>/<%#FriendlyUrl(Eval("TenSanPham").ToString())%>'>
                            <h2 class="product-title">
                                <%#Eval("TenSanPham")%></h2>
                        </a>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
    </div>
    <div style="width: 100%; margin-top: 10px;">
        <div class="collection">
            <cp:CollectionPager LabelText="" FirstText="&amp;nbsp;&amp;nbsp;<<" BackText="< &amp;nbsp;"
                LastText=">>" NextText=">" ShowFirstLast="True" ControlCssClass="collectionpager"
                PagingMode="PostBack" runat="server" BackNextLinkSeparator="" BackNextLocation="Split"
                PageNumbersDisplay="Numbers" ResultsLocation="None" BackNextDisplay="HyperLinks"
                ID="CollectionPager1" BackNextButtonStyle="" BackNextStyle="margin-left:5px;"
                ControlStyle="" PageNumbersSeparator="&amp;nbsp;">
            </cp:CollectionPager>
            <div class="collectPage">
                Page:</div>
        </div>
    </div>
    <asp:Label runat="server" Text="" ID="lbThongbao"></asp:Label>
    <div style="width: 100%; float: left; margin-top: 10px; display: none;">
        <div style="float: left;">
            <asp:ImageButton ID="cmdPrev" Visible="false" OnClick="cmdPrev_Click" runat="server"
                ImageUrl="~/images/prevpage.png" /></div>
        <div style="float: right;">
            <asp:ImageButton ID="cmdNext" Visible="false" OnClick="cmdNext_Click" runat="server"
                ImageUrl="~/images/nextpage.png" /></div>
    </div>
</asp:Content>
